package com.atguigu.guli.ai.test4;

public class Person implements Cloneable{
    private String name;
    private int age;
    private Address address;
    public Object clone() throws CloneNotSupportedException{
        Person personClone =  (Person)super.clone();
        personClone.address = (Address)this.address.clone();
        return personClone;
    }
}
